package com.stylefeng.guns.rest.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by ASUS-PC on 2018/6/26.
 */
@TableName(value = "vl_user_idcard")
public class IdCardBean extends Model<IdCardBean>{
    private static final long serialVersionUID = 1L;

    private int id;
    @TableField(value = "user_id")
    private int userId;
    @TableField(value = "user_name")
    private String userName;
    @TableField(value = "idcard_nums")
    private String idcardNums;
    private int state;
    private String image;
    @TableField(value = "create_time")
    private Date createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIdcardNums() {
        return idcardNums;
    }

    public void setIdcardNums(String idcardNums) {
        this.idcardNums = idcardNums;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
